package Dome09;

public class MyStringTest {
    public static void main(String[] args) {
        String s1 = "Hello java";
        String s2 = "Hello java";
        System.out.println(s1);
        if (s1.equals(s2)){
            String news1 = s1.replace(" ","");
            System.out.println(news1);
            String news1Res = news1.replace("java","woeld");
            System.out.println(news1Res);
        }
    }
}
